<?php

declare(strict_types=1);

namespace App\Fastapp\Model;

use Mine\MineModel;

/**
 * @property int $id 主键
 * @property int $user_id 用户id
 * @property int $type 1建议2投诉
 * @property int $status 处理0否1是
 * @property string $content 内容
 * @property array $images 图片
 * @property string $reply 回复
 * @property string $remark 备注
 * @property \Carbon\Carbon $created_at 
 * @property \Carbon\Carbon $updated_at 
 */
class AccountFeedback extends MineModel
{
    use FileTrait;

    /**
     * The table associated with the model.
     */
    protected ?string $table = 'account_feedback';

    /**
     * The attributes that are mass assignable.
     */
    protected array $fillable = ['id', 'user_id', 'type', 'status', 'content', 'images', 'reply', 'remark', 'created_at', 'updated_at'];

    /**
     * The attributes that should be cast to native types.
     */
    protected array $casts = ['id' => 'integer', 'user_id' => 'integer', 'type' => 'integer', 'status' => 'integer', 'images' => 'array', 'created_at' => 'datetime', 'updated_at' => 'datetime'];
}
